<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  users
 */

class m_users_views_block_FormUsersSuccessView extends f_core_View
{
	public function execute()
	{
		$values = $this->getModel();		
		$template = f_template_Template::getInstance()->disableCache();
		$template->setModuleTemplate("users", "back/block/modal/ModalFormUsers.html");
		$template->assign("users", $values["users"]);
		$template->assign("href", $values["href"]);
		$template->assign("docId", $values["docId"]);
		$template->assign("values", $values['formValues']);
		$template->assign("errors", $values['errors']);
		if(isset($values['relatedDocs']))
		{
			$template->assign("relatedDocs", $values['relatedDocs']);	
		}
		$template->renderDisplay();
	}
}